<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频播放中心 - Gitee Pages</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #7f8c8d;
            margin-bottom: 20px;
        }
        
        .video-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 40px;
        }
        
        .video-container {
            width: 100%;
            max-width: 800px;
            background: #000;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
            margin-bottom: 20px;
        }
        
        video {
            width: 100%;
            display: block;
        }
        
        .video-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 12px 25px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        
        .btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        .btn:active {
            transform: translateY(0);
        }
        
        .btn i {
            font-size: 1.2rem;
        }
        
        .playlist {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .playlist h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
        }
        
        .playlist-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .playlist-item {
            background: #f8f9fa;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s ease;
            cursor: pointer;
            border: 2px solid transparent;
        }
        
        .playlist-item:hover {
            transform: translateY(-5px);
            border-color: #3498db;
        }
        
        .playlist-item img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .playlist-item-content {
            padding: 15px;
        }
        
        .playlist-item h3 {
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: #2c3e50;
        }
        
        .playlist-item p {
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        
        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .video-controls {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>Gitee视频播放中心</h1>
            <p class="subtitle">简洁、美观、响应式的视频播放页面</p>
        </header>
        
        <section class="video-section">
            <div class="video-container">
                <video id="myVideo" poster="https://via.placeholder.com/800x450/3498db/ffffff?text=Gitee+Video+Player" controls>
                    <source src="#" type="video/mp4">
                    您的浏览器不支持HTML5视频播放
                </video>
            </div>
            
            <div class="video-controls">
                <button class="btn" id="playBtn"><i class="fas fa-play"></i> 播放</button>
                <button class="btn" id="pauseBtn"><i class="fas fa-pause"></i> 暂停</button>
                <button class="btn" id="muteBtn"><i class="fas fa-volume-mute"></i> 静音</button>
                <button class="btn" id="fullscreenBtn"><i class="fas fa-expand"></i> 全屏</button>
            </div>
        </section>
        
        <section class="playlist">
            <h2>推荐视频</h2>
            <div class="playlist-items">
                <div class="playlist-item" data-video="video1.mp4">
                    <img src="https://via.placeholder.com/300x160/3498db/ffffff?text=自然风光" alt="自然风光">
                    <div class="playlist-item-content">
                        <h3>自然风光纪录片</h3>
                        <p>时长: 15:30</p>
                    </div>
                </div>
                
                <div class="playlist-item" data-video="video2.mp4">
                    <img src="https://via.placeholder.com/300x160/e74c3c/ffffff?text=科技前沿" alt="科技前沿">
                    <div class="playlist-item-content">
                        <h3>科技前沿探索</h3>
                        <p>时长: 22:15</p>
                    </div>
                </div>
                
                <div class="playlist-item" data-video="video3.mp4">
                    <img src="https://via.placeholder.com/300x160/2ecc71/ffffff?text=城市时光" alt="城市时光">
                    <div class="playlist-item-content">
                        <h3>城市时光 lapse</h3>
                        <p>时长: 10:45</p>
                    </div>
                </div>
            </div>
        </section>
        
        <footer>
            <p>© 2023 Gitee视频播放页面 - 本页面仅作演示用途</p>
            <p>视频资源来源于网络，如有侵权请联系删除</p>
        </footer>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const video = document.getElementById('myVideo');
            const playBtn = document.getElementById('playBtn');
            const pauseBtn = document.getElementById('pauseBtn');
            const muteBtn = document.getElementById('muteBtn');
            const fullscreenBtn = document.getElementById('fullscreenBtn');
            const playlistItems = document.querySelectorAll('.playlist-item');
            
            // 播放按钮事件
            playBtn.addEventListener('click', function() {
                video.play();
            });
            
            // 暂停按钮事件
            pauseBtn.addEventListener('click', function() {
                video.pause();
            });
            
            // 静音按钮事件
            muteBtn.addEventListener('click', function() {
                if (video.muted) {
                    video.muted = false;
                    muteBtn.innerHTML = '<i class="fas fa-volume-mute"></i> 静音';
                } else {
                    video.muted = true;
                    muteBtn.innerHTML = '<i class="fas fa-volume-up"></i> 取消静音';
                }
            });
            
            // 全屏按钮事件
            fullscreenBtn.addEventListener('click', function() {
                if (video.requestFullscreen) {
                    video.requestFullscreen();
                } else if (video.webkitRequestFullscreen) {
                    video.webkitRequestFullscreen();
                } else if (video.msRequestFullscreen) {
                    video.msRequestFullscreen();
                }
            });
            
            // 播放列表项点击事件
            playlistItems.forEach(item => {
                item.addEventListener('click', function() {
                    const videoSource = this.getAttribute('data-video');
                    // 在实际应用中，这里会切换视频源
                    alert('在实际应用中，这里会切换到: ' + videoSource);
                    // video.src = videoSource;
                    // video.load();
                    // video.play();
                });
            });
            
            // 视频播放和暂停时更新按钮状态
            video.addEventListener('play', function() {
                playBtn.style.display = 'none';
                pauseBtn.style.display = 'flex';
            });
            
            video.addEventListener('pause', function() {
                playBtn.style.display = 'flex';
                pauseBtn.style.display = 'none';
            });
        });
    </script>
</body>
</html>